Method and apparatus for controlling flexible screen, and electronic device

ABSTRACT

The present disclosure provides a method and an apparatus for controlling a flexible screen and an electronic device. The method includes: obtaining a press parameter with respect to a motor drive switch; and controlling a motor to rotate according to the press parameter, to unfold or fold the flexible screen. The flexible screen can be controlled to unfold and fold to obtain a suitable screen size.

This application claims priority Chinese patent applications Serial No. 201610539091.5 filed on Jul. 8, 2016, and titled with “control method of electronic device and electronic device”, the entire contents of which are incorporated herein by reference.

FIELD

The present disclosure relates to the field of electronic device technologies, and more particularly to a control method of an electronic device and an electronic device.

BACKGROUND

With the rapid development of information technologies, electronic devices (such as mobile phones and tablet computers) are upgraded faster and faster, and a development trend of display screens of the electronic devices is adopting flexible screens as the displaying screens. The flexible screen is also referred to as a flexible display screen, which has features of light weight, bendability, and portability, and thus has become a future development direction of the display screen.

SUMMARY

Embodiments of the present disclosure provide a control method of an electronic device and an electronic device, for controlling unfolding and folding of the flexible screen.

Embodiments of a first aspect of the present disclosure provide a control method of an electronic device. The method is applicable to an electronic device. The electronic device is provided with a flexible screen, and the method includes: obtaining a press parameter with respect to a motor drive switch; and controlling a motor to rotate according to the press parameter, to unfold or fold the flexible screen.

Embodiments of a second aspect of the present disclosure provide an electronic device. The electronic device is provided with a flexible screen, and includes: an obtaining unit, configured to obtain a press parameter with respect to a motor drive switch; and a control unit, configured to control a motor to rotate according to the press parameter obtained by the obtaining unit, to unfold or fold the flexible screen.

Embodiments of a third aspect of the present disclosure provide an electronic device. The electronic device is provided with a flexible screen, and includes a processor and a memory. The processor is configured to call executable program codes in the memory, to execute all or a part of operations in the first aspect.

In a fourth aspect, a computer readable storage medium is provided. The computer readable storage medium is stored with computer programs for electronic data exchange, wherein the computer programs are configured to enable a computer to execute all or a part of operations described in embodiments of the first aspect of the present disclosure.

In a fifth aspect, a computer program product is provided. The computer program product includes a non-transitory computer readable storage medium stored with computer programs, wherein the computer programs are operable to cause a computer to execute all or a part of operations described in embodiments of the first aspect of the present disclosure. The computer program product may be a software installation package.

Embodiments of the present disclosure have following beneficial effects.

It can be seen that, in embodiments of the present disclosure, by obtaining the press parameter with respect to the motor drive switch, the motor is controlled to rotate according to the press parameter, such that the flexible screen is folded or unfolded. Thus, the motor is controlled to rotate using the press parameter with respect to the motor drive switch, and further the flexible screen is folded and unfolded, and further folding and unfolding of the flexible screen is controlled.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to more clearly explain technical solutions in embodiments of the present disclosure or in the related art, drawings required to be used in description of embodiments of the present disclosure or of the related art is simply introduced below. Apparently, the drawings in the following description are merely embodiments of the present disclosure. For the ordinary skilled in the art, other drawings may be obtained based on these drawings without any creative work.

FIG. 1a is a schematic diagram of an electronic device according to embodiments of the present disclosure.

FIG. 1b is a schematic diagram of components of the electronic device in FIG. 1a according to embodiments of the present disclosure.

FIG. 2 is a flow chart of a first embodiment of a control method of an electronic device according to embodiments of the present disclosure.

FIG. 3 is a flow chart of a second embodiment of a control method of an electronic device according to embodiments of the present disclosure.

FIG. 4 is a flow chart of a third embodiment of a control method of an electronic device according to embodiments of the present disclosure.

FIG. 5 is a flow chart of a fourth embodiment of a control method of an electronic device according to embodiments of the present disclosure.

FIG. 6 is a flow chart of a fifth embodiment of a control method of an electronic device according to embodiments of the present disclosure.

FIG. 7a is a block diagram of a first embodiment of an electronic device according to embodiments of the present disclosure.

FIG. 7b is another block diagram of a first embodiment of an electronic device according to embodiments of the present disclosure.

FIG. 8 is a block diagram of a second embodiment of an electronic device according to embodiments of the present disclosure.

EMBODIMENTS OF THE PRESENT DISCLOSURE

At present, although a flexible screen (including a touch screen and a display screen) can be provided for an electronic device, and can realize an effect of large size display when the flexible screen is unfolded, it is unable to control to unfold and fold the flexible screen better. Thus, the present disclosure provides a control method of an electronic device and an electronic device, which may control to unfold or fold the flexible screen.

In the following, technical solutions in embodiments of the present disclosure will be described clearly and completely with reference to drawings in embodiments of the present disclosure. Obviously, the described embodiments are merely a part of embodiments of the present disclosure, and are not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments in the present disclosure without creative labor belong to the protection scope of the present disclosure.

Terms such as “first”, “second”, “third” and “fourth” in the specification, claims and drawings of the present disclosure are used to distinguish different objects, and are not used to describe specific order. Moreover, terms “including” and “comprising” and their variants intend to cover non-exclusive inclusion. For example, a procedure, method, system or device including a series of steps or units is not limited to listed steps or units, but optionally further includes steps or units that are not listed, or optionally further includes other steps or units inherent to the procedure, method, system or device.

“Embodiments” mentioned herein mean that, specific features, structures or characteristics described in combination with embodiments may be contained in at least one embodiment of the present disclosure. This phrase existing at respective positions does not refer to the same embodiment, or exclusive separate or alternative embodiment of other embodiments. Those skilled in the art understand explicitly and implicitly that, embodiments described herein may be combined with other embodiments.

The electronic device described in embodiments of the present disclosure may include a smartphone (such as Android Phone, iOS Phone, and Windows Phone), a tablet computer, a PDA (personal digital assistant), a notebook computer, a MID (mobile internet device), or a wearable device. The above electronic devices are exemplary, and are not exhaustive. The electronic device is not limited to these. It should be noted that, each of the above electronic devices is provided with the flexible screen and a motor drive switch.

It should be noted that, as illustrated in FIG. 1 a, which shows an electronic device, the electronic device includes a button, which is the motor drive switch in embodiments of the present disclosure. The specific structure of the electronic device is as illustrated in FIG. 1 b, which includes a winding flexible screen (flexible screen for short), a winding tube (hollow), a battery, a motor, a housing, a control circuit board, and a button. The winding flexible screen is wound around the winding tube. The battery may be inserted into the winding tube from one end. The motor, the control circuit board and the button (motor drive switch) may be installed from the other end. The control circuit board is configured to control the motor to rotate. The button is configured to activate the control circuit board. When a user presses the button, the control circuit board may be used to drive the motor to rotate, to drive the winding tube to rotate, and thus unfold or fold the flexible screen. The button may be a physical button, a touch button, or a sensor (for example, a fingerprint sensor, a temperature sensor and the like). The flexible screen may be unfolded fully, and in this case, the flexible screen is in a fully unfolded state. The flexible screen may be folded fully, and in this case, the flexible screen is in a fully folded state. When a value of rotation turns of the motor reaches a limit, the flexible screen is in the fully unfolded state or the fully folded state, and the motor stops rotating. Certainly, when the flexible screen is in the fully unfolded state, it is possible to drive the motor to rotate, to fold the flexible screen. Or, when the flexible screen is in the fully folded state, it is possible to drive the motor to rotate, to unfold the flexible screen. Or, when the flexible screen is in a partially unfolded state, it is possible to drive the motor to rotate, to unfold or fold the flexible screen.

Based on the above electronic device, please refer to FIG. 2, which is a flow chart of a first embodiment of a control method of an electronic device according to embodiments of the present disclosure. The control method of the electronic device described in this embodiment includes following operations.

At block 201, a press parameter with respect to the motor drive switch is obtained.

The motor drive switch may be a physical button or a touch button. Certainly, the motor drive switch may be a sensor, for example, a pressure sensor, a fingerprint sensor and the like. When the user presses the pressure sensor, the corresponding press parameter (for example, a press intensity, a press duration and the like) may be obtained. When the user presses the fingerprint sensor, the corresponding press parameter (for example, a press duration, a number of presses and the like) may be obtained.

Alternatively, the press parameter with respect to the motor drive switch may include, but is not limited to, at least one of the number of presses of pressing the motor drive switch, the press intensity of pressing the motor drive switch, the press duration of pressing the motor drive switch, and a press area of pressing the motor drive switch. The number of presses may be the number of presses of pressing the motor drive switch within a preset time period. The press intensity may be a maximum press intensity or a mean press intensity of pressing the motor drive switch during a process from the user contacting with the motor drive switch to leaving the motor drive switch, or a press intensity at a certain time point. For example, if the time point is 0.01s, and the duration of the user pressing the motor drive switch is 2s, then the press intensity corresponding to this press process is the press intensity of pressing the motor drive switch at 0.01s. The press duration may be an entire time period from the user contacting with the motor drive switch to leaving the motor drive switch, or, the press duration may be a time period corresponding to the press intensity in a certain range in a process from the user contacting with the motor drive switch to leaving the motor drive switch. An intensity change curve during the press process may be obtained. The time period in which the press intensity is in the certain range may be counted according to the intensity change curve. The press area may be a maximum press area, a mean press area, or a minimum press area of pressing the motor drive switch during a process from the user contacting with the motor drive switch to leaving the motor drive switch, or a press area at a certain time point. For example, if the time point is 0.01s, and the duration of the user pressing the motor drive switch is 2s, then the press area corresponding to the press process is the press area of pressing the motor drive switch at 0.01s.

Further, when the motor drive switch is a touch switch, the press parameter may be number of touch points of touching the motor drive switch. For example, when the motor drive switch is touched with one finger, the number of touch points is 1; when the motor drive switch is touched with two fingers, the number of touch points is 2; when the motor drive switch is touched with three fingers, the number of touch points is 3, and so on.

At block 202, the motor is controlled to rotate according to the press parameter, to unfold or fold the flexible screen.

Alternatively, the electronic device may control the motor to rotate according to different press parameters. For example, taking the press intensity as an example, when the greater the press intensity is, the faster the motor is controlled to rotate, or the more value of rotation turns the motor is controlled to rotate. During the rotation of the motor, the winding tube may be driven to unfold the flexible screen.

Alternatively, when the flexible screen is in the fully folded state, and the press parameter with respect to the drive switch is obtained, the motor can be controlled to rotate according to the press parameter, to unfold the flexible screen. Or, when the flexible screen is in the fully unfolded state, and the press parameter with respect to the drive switch is obtained, the motor can be controlled to rotate according to the press parameter, to fold the flexible screen.

Alternatively, an unfolding instruction for the flexible screen may be received first, When the press parameter with respect to the drive switch is obtained, the motor can be controlled to rotate according to the press parameter, to unfold the flexible screen. Or, a folding instruction for the flexible screen may be received first. When the press parameter with respect to the drive switch is obtained, the motor can be controlled to rotate according to the press parameter, to fold the flexible screen.

It can be seen that, with the above method, the flexible screen may be folded or unfolded, to obtain a suitable screen size, thus satisfying different requirements of the screen size of the user.

Alternatively, between the block 201 and the block 201, following operations may be further performed.

1) determining whether the press intensity is within a preset range.

2) determining whether the press duration is greater than a second preset threshold when the press intensity is within the preset range, the operation at block 202 is performed when the press duration is greater than the second preset threshold.

At operations 1 and 2, when the press intensity is not within the preset range, or the press duration is less than or equal to the second preset threshold, the operation at block 202 is not performed. The preset range and the second preset threshold may be set by the user, which is not limited here. Certainly, the determination may be performed based on other press parameters. For example, it may be determined whether the press area is within a certain range, and if yes, the operation at block 202 is performed, and if no, the operation at block 202 is not performed. The above operations 1 and 2 may avoid theft and avoid mis-operations to some extent.

It can be seen that, in embodiments of the present disclosure, by obtaining the press parameter with respect to the motor drive switch, the motor is controlled to rotate according to the press parameter, to unfold or fold the flexible screen. Thus, the motor is controlled to rotate using the press parameter with respect to the motor drive switch, and further the flexible screen is folded or unfolded. The flexible screen may be controlled to unfold or fold to obtain a suitable screen size and satisfy different requirements of the screen size of the user.

FIGS. 3-6 illustrate details of the control method of the electronic device in FIG. 2.

Consistent with the above embodiment, please refer to FIG. 3, which is a flow chart of a second embodiment of a control method of an electronic device according to embodiments of the present disclosure. The control method of the electronic device described in this embodiment includes following operations.

At block 301, the press intensity with respect to the motor drive switch is obtained.

At block 302, a value of rotation turns of the motor corresponding to the press intensity is determined according to a preset mapping relationship between press intensities and values of rotation turns of the motor.

At block 303, the motor is controlled to rotate according to the value of rotation turns of the motor, to unfold or fold the flexible screen.

The mapping relationship between press intensities and values of rotation turns of the motor may be set in advance. For example, a minimum press intensity may be set. When the press intensity with respect to the motor drive switch is greater than this minimum press intensity, the press intensity with respect to the motor drive switch can be valid. In this way, the mis-operation on the electronic device may be avoided to some extent. In addition, a maximum press intensity may also be set. When the press intensity with respect to the motor drive switch reaches the maximum press intensity, the value of rotation turns of the motor may be controlled to reach the limit, and accordingly, the flexible screen is in the fully folded state or the fully unfolded state. When the press intensity with respect to the motor drive switch is between the minimum press intensity and the maximum press intensity, the value of rotation turns of the motor corresponding to the press intensity is determined according to a formula of:

Y=(C−B)/(A−B)*K;

where, Y is the value of rotation turns of the motor corresponding to the press intensity with respect to the motor drive switch, C is the press intensity with respect to the motor drive switch, A is the maximum press intensity, B is the minimum press intensity, and D is the maximum value of rotation turns.

Certainly, a plurality of levels may be determined between the minimum press intensity and the maximum press intensity. For example, the plurality of levels include a1, a2 and a3, the value of rotation turns of the motor corresponding to a1 is b1, the value of rotation turns of the motor corresponding to a2 is b2, and the value of rotation turns of the motor corresponding to a3 is b3. Then, when the press intensity is at the level al, the corresponding value of rotation turns of the motor is b1. Assume that the minimum press intensity is 10N and the maximum press intensity is 40N, then three levels may be set, one being 10˜20N, one being 20˜30N, and one being 30˜40N, each level being corresponding to one value of rotation turns of the motor. When the press intensity with respect to the motor drive switch is less than 10N, the motor cannot be driven. When the press intensity with respect to the motor drive switch is greater than 40N, the motor is controlled to rotate the rotation turns such that the flexible screen enters the fully unfolded state or the fully folded state. For example, when the press intensity is 10.8N, the value of rotation turns of the motor corresponding to the level of 10˜20N may be used as the value of rotation turns of the motor corresponding to the press intensity.

In regard to specific description of other operations in FIG. 3, reference may be made to specific description of respective operations in the embodiment illustrated in FIG. 2, which will not be elaborated here.

Consistent with the above embodiment, please refer to FIG. 4, which is a flow chart of a third embodiment of a control method of an electronic device according to embodiments of the present disclosure. The control method of the electronic device described in this embodiment includes following operations.

At block 401, the press duration with respect to the motor drive switch is obtained.

At block 402, a value of rotation turns of the motor corresponding to the press intensity is determined according to a preset mapping relationship between press durations and values of rotation turns of the motor.

At block 403, the motor is controlled to rotate according to the value of rotation turns of the motor, to unfold or fold the flexible screen.

The mapping relationship between press durations and values of rotation turns of the motor may be set in advance. For example, a minimum press duration may be set. When the press duration with respect to the motor drive switch is greater than this minimum press duration, the press duration with respect to the motor drive switch can be valid. In this way, the mis-operation on the electronic device may be avoided to some extent. In addition, a maximum press duration may also be set. When the press duration with respect to the motor drive switch reaches the maximum press duration, the value of rotation turns of the motor may be controlled to reach the limit. Therefore, the flexible screen is in the fully folded state or the fully unfolded state. When the press duration with respect to the motor drive switch is between the minimum press duration and the maximum press duration, the value of rotation turns of the motor corresponding to the press duration is determined according to a formula of:

Y=(C−B)/(A−B)*K;

where, Y is the value of rotation turns of the motor corresponding to the press duration with respect to the motor drive switch, C is the press duration with respect to the motor drive switch, A is the maximum press duration, B is the minimum press duration, and D is the maximum value of rotation turns.

Certainly, a plurality of levels may be determined between the minimum press duration and the maximum press duration. For example, the plurality of levels include al, a2 and a3, the value of rotation turns of the motor corresponding to al is bl, the value of rotation turns of the motor corresponding to a2 is b2, and the value of rotation turns of the motor corresponding to a3 is b3. Then, when the press duration is at the level al, the corresponding value of rotation turns of the motor is b1. Assume that the minimum press duration is 0.1s, and the maximum press duration is 5s, then three levels may be set, one being 0.1˜1.5s, one being 1.5˜3.5s, and one being 3.5˜4s, each level being corresponding to one value of rotation turns of the motor. When the press duration with respect to the motor drive switch is less than 0.1s, the motor cannot be driven. When the press duration with respect to the motor drive switch is greater than 5s, the motor is controlled to rotate the rotation turns such that the flexible screen enters the fully unfolded state or the fully folded state. For example, when the press duration is 1.8s, the value of rotation turns of the motor corresponding to the level of 1.5˜3.5s may be used as the value of rotation turns of the motor corresponding to the press duration.

Certainly, before obtaining the press duration with respect to the motor drive switch, it may be first determined whether the press intensity with respect to the motor drive switch is greater than the preset threshold. When the press intensity with respect to the motor drive switch is greater than the preset threshold, the press duration with respect to the motor drive switch is obtained. The main purpose of determining the press intensity before obtaining the press duration is avoiding the mis-operations.

In regard to specific description of other operations in FIG. 4, reference may be made to specific description of respective operations in the embodiment illustrated in FIG. 2, which will not be elaborated here.

Consistent with the above embodiment, please refer to FIG. 5, which is a flow chart of a fourth embodiment of a control method of an electronic device according to embodiments of the present disclosure. The control method of the electronic device described in this embodiment includes following operations.

At block 501, the number of presses with respect to the motor drive switch is obtained.

At block 502, a value of rotation turns of the motor corresponding to the number of presses is determined according to a preset mapping relationship between the numbers of presses and values of rotation turns of the motor.

Alternatively, whether the number of presses is less than a first preset threshold is determined. When the number of presses is less than the first preset threshold, the value of rotation turns of the motor corresponding to the number of presses is determined according to the preset mapping relationship between the numbers of presses and values of rotation turns of the motor, and the motor is controlled to rotate according to the value of rotation turns of the motor. When the number of presses is greater than or equal to the first preset threshold, the motor is controlled to rotate continuously, and when the flexible screen is fully unfolded or fully folded, the motor is controlled to stop rotating. The first preset threshold can be set by the user.

At block 503, the motor is controlled to rotate according to the value of rotation turns of the motor, to unfold or fold the flexible screen.

Alternatively, the mapping relationship between the numbers of presses and values of rotation turns of the motor may be set in advance. For example, a minimum number of presses may be set. When the number of presses with respect to the motor drive switch is greater than this minimum number of presses, the number of presses with respect to the motor drive switch can be valid. In this way, the mis-operation on the electronic device may be avoided to some extent. In addition, a maximum number of presses may also be set. When the number presses with respect to the motor drive switch reaches the maximum number of presses, the value of rotation turns of the motor may be controlled to reach the limit, and accordingly, the flexible screen is in the fully folded state or the fully unfolded state. When the number of presses with respect to the motor drive switch is between the minimum number of presses and the maximum number of presses, the value of rotation turns of the motor corresponding to the number of presses is determined according to a formula of:

Y=(C−B)/(A−B)*K;

where, Y is the value of rotation turns of the motor corresponding to the number of presses with respect to the motor drive switch, C is the number of presses with respect to the motor drive switch, A is the maximum number of presses, B is the minimum number of presses, and D is the maximum value of rotation turns.

Certainly, a plurality of levels may be determined between the minimum number of presses and the maximum number of presses. For example, the plurality of levels include a1, a2 and a3, the value of rotation turns of the motor corresponding to a1 is b1, the value of rotation turns of the motor corresponding to a2 is b2, and the value of rotation turns of the motor corresponding to a3 is b3. Then, when the number of presses is at the level a1, the corresponding value of rotation turns of the motor is b1. Assume that the minimum number of presses is 1, and the maximum number of presses is 10, then three levels may be set, one being 1˜3, one being 4˜6, and one being 7˜10, each level being corresponding to one value of rotation turns of the motor. When the number of presses with respect to the motor drive switch is less than 1, the motor cannot be driven. When the number of presses with respect to the motor drive switch is greater than 10, the motor is controlled to rotate the rotation turns such that the flexible screen enters the fully unfolded state or the fully folded state. For example, when the number of presses is 5, the value of rotation turns of the motor corresponding to the level of 4˜6 may be used as the value of rotation turns of the motor corresponding to the number of presses.

Alternatively, the above minimum number of presses may be 0. For example, when the number of presses with respect to the motor drive switch is 1, the value of rotation turns of the motor corresponding to this one time of press may be determined, and the motor can be controlled to rotate with the rotation turns of the motor.

Certainly, before obtaining the number of presses with respect to the motor drive switch, the electronic device may be first wakened. When the electronic device is wakened, the number of presses with respect to the motor drive switch is obtained. The main purpose of wakening the electronic device before obtaining the number of presses is avoiding the mis-operations.

Alternatively, the above number of presses may be the number of presses within a preset time period. When the user keeps pressing the motor drive switch, one press may be counted every preset time interval. Further, during collecting the number of presses, when the time interval between two adjacent press operations is greater than a certain threshold, the number of presses is counted for a next turn. For example, when 5 presses have been counted, and the time interval between the fifth press and the sixth press is greater than the certain threshold, the finally counted number of presses is 5.

In regard to specific description of other operations in FIG. 5, reference may be made to specific description of respective operations in the embodiment illustrated in FIG. 2, which will not be elaborated here.

Consistent with the above embodiment, please refer to FIG. 6, which is a flow chart of a fifth embodiment of a control method of an electronic device according to embodiments of the present disclosure. The control method of the electronic device described in this embodiment includes following operations.

At block 601, the press parameter with respect to the motor drive switch is obtained. The press parameter includes the number of presses of pressing the motor drive switch, the press intensity of pressing the motor drive switch, and the press duration of pressing the motor drive switch.

At block 602, whether the press intensity is within the preset range is determined.

At block 603, when the press intensity is within the preset range, whether the press duration is greater than the second preset threshold is determined.

At block 604, when the press duration is greater than the second preset threshold, the value of rotation turns of the motor corresponding to the number of presses is determined according to the preset mapping relationship between the numbers of presses and the values of rotation turns of the motor.

At block 605, the motor is controlled to rotate according to the value of rotation turns of the motor, to unfold or fold the flexible screen.

Both the preset range and the second preset threshold may be set by the user, which is not limited here. The operation at block 603 is performed only when the press intensity is within the preset range. Moreover, the operation at block 604 is performed only when the press intensity is within the preset range and the press duration is greater than the second preset threshold. The operations at block 602 and block 603 may avoid mi-operations to some extent, and moreover, may have a certain anti-theft function. When any determination result of the operations at block 602 and block 603 is negative, the motor cannot be driven to rotate, i.e., the flexible screen cannot be folded or unfolded.

In regard to specific description of other operations in FIG. 6, reference may be made to specific description of respective operations in the embodiment illustrated in FIG. 2 or FIG. 5, which will not be elaborated here.

Hereinafter is the device of the control method of the electronic device described above.

Please refer to FIG. 7a , which is a block diagram of a first embodiment of an electronic device according to embodiments of the present disclosure. The electronic device described in this embodiment includes an obtaining unit 701 and a controlling unit 702. The electronic device is provided with a flexible screen.

The obtaining unit 701 is configured to obtain a press parameter with respect to a motor drive switch.

The controlling unit 702 is configured to control a motor to rotate according to the press parameter obtained by the obtaining unit 701, to unfold or fold the flexible screen.

Alternatively, the press parameter includes at least one of a number of pressing the motor drive switch, a press intensity of pressing the motor drive switch, and a press duration of pressing the motor drive switch.

Further alternatively, the controlling unit 702 is configured to: determine a value of rotation turns of the motor corresponding to the press intensity according to a preset mapping relationship between press intensities and values of rotation turns of the motor; and control the motor to rotate according to the value of rotation turns.

Further alternatively, the controlling unit 702 is configured to: determine a value of rotation turns of the motor corresponding to the press duration according to a preset mapping relationship between press durations and values of rotation turns of the motor; and control the motor to rotate according to the value of rotation turns.

Further alternatively, the controlling unit 702 is configured to: determine a value of rotation turns of the motor corresponding to the number of presses according to a preset mapping relationship between numbers of presses and values of rotation turns of the motor when the number of presses is less than a first preset threshold, and control the motor to rotate according to the value of rotation turns; control the motor to rotate continuously and control the motor to stop rotating until the flexible screen is fully folded or fully unfolded when the number of presses is greater than or equal to the first preset threshold.

Alternatively, as illustrated in FIG. 7b , the electronic device illustrated in FIG. 7a may further include a determining unit 703.

The determining unit 703 is configured to determine whether the press intensity is within a preset range after the obtaining unit 701 obtains the press parameter with respect to the motor drive switch, and determine whether the press duration is greater than a second preset threshold after determining that the press intensity is within the present range. When the determining unit 702 determines that the press duration is greater than the second preset threshold, the controlling unit 702 controls the motor to rotate according to the press parameter.

It can be seen that, the electronic device described in embodiments of the present disclosure may obtain the press parameter with respect to the motor drive switch, and control the motor to rotate according to the press parameter, to unfold or fold the flexible screen. Thus, the flexible screen is folded and unfolded, and further the folding and unfolding of the flexible screen can be controlled, such that a suitable screen size may be obtained, satisfying different requirements of the screen size of the user.

It can be understood that, functions of respective program modules of the electronic device in this embodiment may be implemented according to above method embodiments, with respect to the specific implementation of which, reference can be made to related description of the above method embodiments, which will not be elaborated here.

Please refer to FIG. 8, which is a block diagram of a second embodiment of an electronic device according to embodiments of the present disclosure. The electronic device described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, for example, CPU; and a memory 4000. The above input device 1000, output device 2000, processor 3000 and memory 4000 are coupled via a bus 5000.

The input device 1000 may be a touch panel, a physical button, or a mouse, a motor drive switch, or the like.

The output device 2000 may be a flexible screen.

The memory 4000 may be a high speed RAM, or may be a non-volatile memory, for example, a disk memory. The memory 4000 is configured to store a set of program codes. The input device 1000, the output device 2000 and the processor 3000 are configured to call the program codes stored in the memory 4000, to perform following operations.

The processor 3000 is configured to: obtain a press parameter with respect to a motor drive switch; and control a motor to rotate according to the press parameter, to unfold or fold the flexible screen.

Alternatively, the press parameter includes at least one of a number of pressing the motor drive switch, a press intensity of pressing the motor drive switch, and a press duration of pressing the motor drive switch.

Alternatively, the processor 3000 is configured to control the motor to rotate according to the press parameter, by: determining a value of rotation turns of the motor corresponding to the press intensity according to a preset mapping relationship between press intensities and values of rotation turns of the motor; and controlling the motor to rotate according to the value of rotation turns.

Alternatively, the processor 3000 is configured to control the motor to rotate according to the press parameter, by: determining a value of rotation turns of the motor corresponding to the press duration according to a preset mapping relationship between press durations and values of rotation turns of the motor; and controlling the motor to rotate according to the value of rotation turns.

Further alternatively, the processor 3000 is configured to control the motor to rotate according to the press parameter, by: determining a value of rotation turns of the motor corresponding to the number of presses according to a preset mapping relationship between numbers of presses and values of rotation turns of the motor when the number of presses is less than a first preset threshold, and controlling the motor to rotate according to the value of rotation turns; controlling the motor to rotate continuously and controlling the motor to stop rotating until the flexible screen is fully folded or fully unfolded when the number of presses is greater than or equal to the first preset threshold.

Alternatively, after obtaining the press parameter with respect to the motor drive switch, and before controlling the motor to rotate according to the press parameter, the processor 3000 is further configured to: determine whether the press intensity is within a preset range; determine whether the press duration is greater than a second preset threshold when determining that the press intensity is within the preset range, and perform the operation of controlling the motor to rotate according to the press parameter when determining that the press duration is greater than the second preset threshold.

Embodiments of the present disclosure further provide a computer storage medium. The computer storage medium is stored with computer programs for electronic data exchange. The computer programs are configured to cause a computer to execute all or a part of operations of any control method of an electronic device disclosed in above method embodiments.

Embodiments of the present disclosure further provide a computer program product. The computer program product includes a non-transitory computer readable storage medium stored with computer programs. The computer programs are operable to cause a computer to execute all or a part of operations of any control method of an electronic device disclosed in above method embodiments.

Although the present disclosure is described here in combination with respective embodiments, those skilled in the art may understand and implement other variants of the disclosed embodiments by viewing the drawings, the disclosure, and the appending claims during implementing the claimed inventions. In the claims, the term “comprising” does not exclude other components or steps, “a” or “an” does not exclude a plural form. A single processor or other units may implement several functions listed in the claims. Some measures are disclosed in mutually different dependent claims, but this does not imply that these measures cannot be combined to produce a better effect.

Those skilled in the art should understand that, embodiments of the present disclosure may be provided as a method, an apparatus (device) or a computer program product. Thus, the present disclosure may be implemented in a form of hardware, software, or a combination of hardware and software. Moreover, the preset disclosure may be implemented in a form of computer program product implemented on one or more computer accessible storage medium (including, but not limited to, disk memory, CD-ROM, and optical memory) and containing computer accessible program codes. The computer program is stored/distributed in a suitable medium, which is provided together with other hardware or acts as a part of the hardware. The computer program may also be distributed in other forms, for example, via the Internet or other wired or wireless telecommunication systems.

The present disclosure is described with reference to flow charts and/or block diagrams of a method, apparatus (device) and computer program product of embodiments of the present disclosure. It should be understood that, each flow and/or block in the flow charts and/or block diagrams, and a combination of flows and/or blocks in the flow charts and/or block diagrams may be implemented by computer program instructions. These computer program instructions may be provided to a general-purpose computer, a dedicated computer, an embedded processor, or a processor of other programmable data processing device to produce a machine, such that the instructions executed by the computer or the processor of other programmable data processing device generate an apparatus for implementing functions specified in one or more flows of the flow chart and/or one or more blocks in the block diagram.

These computer program instructions may also be stored in a computer readable memory that can guide the computer or the other programmable data processing devices to work in a special way, such that the instructions stored in the computer readable memory generate a manufactured article including a command device. The command device implements functions specified in one or more flows of the flow chart and/or one or more blocks in the block diagram.

These computer program instructions may also be loaded to the computer or the other programmable data processing devices, such that a series of operations is executed on the computer or the other programmable data processing devices to generate processing implemented by the computer, and thus the instructions executed on the computer or the other programmable data processing devices provide operations for implementing functions specified in one or more flows of the flow chart and/or one or more blocks in the block diagram.

Although the present disclosure is described in combination with specific feature and embodiments thereof, it is obvious that various modification and combination can be made without departing form the spirit and the scope of the present disclosure. Accordingly, the specification and the drawings are merely exemplary illustration of the present disclosure defined by the appending claims, and are regarded to cover any and all modification, change, combination or equivalent in the scope of the present disclosure. Obviously, those skilled in the art may make various change and variants to the present disclosure, without departing from the spirit and the scope of the present disclosure. In this case, when these change and variants of the present disclosure belong to the scope of the claims and the equivalent technologies, the present disclosure intends to include these change and variants. 

1. A control method for controlling a flexible screen of an electronic device, comprising: obtaining a press parameter with respect to a motor drive switch; and controlling a motor to rotate according to the press parameter, to unfold or fold the flexible screen.
 2. The method according to claim 1, wherein the press parameter comprises at least one of a number of presses of pressing the motor drive switch, a press intensity of pressing the motor drive switch, and a press duration of pressing the motor drive switch.
 3. The method according to claim 2, wherein when the press parameter is the press intensity or the press duration, controlling the motor to rotate according to the press parameter comprises: determining a value of rotation turns of the motor corresponding to the press intensity or the press duration according to a preset mapping relationship between press intensities or press durations and values of rotation turns of the motor; and controlling the motor to rotate according to the value of rotation turns.
 4. (canceled)
 5. The method according to claim 2, wherein controlling the motor to rotate according to the press parameter comprises: determining a value of rotation turns of the motor corresponding to the number of presses according to a preset mapping relationship between numbers of presses and values of rotation turns of the motor when the number of presses is less than a first preset threshold, and controlling the motor to rotate according to the value of rotation turns; controlling the motor to rotate continuously, until the flexible screen is fully folded or fully unfolded when the number of presses is greater than or equal to the first preset threshold.
 6. The method according to claim 2, wherein, after obtaining the press parameter with respect to the motor drive switch and before controlling the motor to rotate according to the press parameter, the method further comprises: determining whether the press intensity is within a preset range; determining whether the press duration is greater than a second preset threshold when determining that the press intensity is within the preset range; and determining a value of rotation turns of the motor corresponding to the number of presses according to a preset mapping relationship between numbers of presses and values of rotation turns of the motor when determining that the press duration is greater than the second preset threshold.
 7. An apparatus for controlling a flexible screen of an electronic device, comprising: a processor; and a memory, configured to store instructions executable by the processor, wherein the processor is configured to run a program corresponding to the instructions by reading the instructions stored in the memory, so as to: obtain a press parameter with respect to a motor drive switch; and control a motor to rotate according to the press parameter, to unfold or fold the flexible screen.
 8. The apparatus according to claim 7, wherein the press parameter comprises at least one of a number of presses of pressing the motor drive switch, a press intensity of pressing the motor drive switch, and a press duration of pressing the motor drive switch.
 9. The apparatus according to claim 8, wherein, when the press parameter is the press intensity or the press duration, the processor is configured to: determine a value of rotation turns of the motor corresponding to the press intensity or the press duration according to a preset mapping relationship between press intensities or press durations and values of rotation turns of the motor; and control the motor to rotate according to the value of rotation turns.
 10. (canceled)
 11. The apparatus according to claim 8, wherein the processor is configured to: determine a value of rotation turns of the motor corresponding to the number of presses according to a preset mapping relationship between numbers of presses and values of rotation turns of the motor when the number of presses is less than a first preset threshold, and control the motor to rotate according to the value of rotation turns; control the motor to rotate continuously until the flexible screen is fully folded or fully unfolded when the number of presses is greater than or equal to the first preset threshold.
 12. The apparatus according to claim 8, wherein the processor is further configured to: determine whether the press intensity is within a preset range after obtaining the press parameter with respect to the motor drive switch; determine whether the press duration is greater than a second preset threshold after determining that the press intensity is within the present range; and determine a value of rotation turns of the motor corresponding to the number of presses according to a preset mapping relationship between numbers of presses and values of rotation turns of the motor when the press duration is greater than the second preset threshold, to control the motor to rotate according to the value of rotation turns of the motor.
 13. An electronic device, comprising: a winding tube; a flexible screen, operable to wind around the winding tube; a motor drive switch, configured to obtain a press parameter when the motor drive switch is pressed; a motor, coupled to the winding tube; and a control circuit, coupled to the motor drive switch and the motor respectively, and configured to receive the press parameter, and to control the motor to rotate according to the press parameter, to unfold or fold the flexible screen.
 14. The electronic device according to claim 13, wherein the press parameter comprises at least one of a number of presses of pressing the motor drive switch, a press intensity of pressing the motor drive switch, and a press duration of pressing the motor drive switch.
 15. The electronic device according to claim 14, wherein when the press parameter is the press intensity or the press duration, the control circuit is further configured to: determine a value of rotation turns of the motor corresponding to the press intensity or the press duration according to a preset mapping relationship between press intensities or press durations and values of rotation turns of the motor; and control the motor to rotate according to the value of rotation turns.
 16. (canceled)
 17. The electronic device according to claim 14, wherein the control circuit is further configured to: determine a value of rotation turns of the motor corresponding to the number of presses according to a preset mapping relationship between numbers of presses and values of rotation turns of the motor when the number of presses is less than a first preset threshold, and controlling the motor to rotate according to the value of rotation turns; control the motor to rotate continuously until the flexible screen is fully folded or fully unfolded when the number of presses is greater than or equal to the first preset threshold.
 18. The electronic device according to claim 14, wherein, after receiving the press parameter and before controlling the motor to rotate according to the press parameter, the control circuit is further configured to: determine whether the press intensity is within a preset range; determine whether the press duration is greater than a second preset threshold when determining that the press intensity is within the preset range; and determine a value of rotation turns of the motor corresponding to the number of presses according to a preset mapping relationship between numbers of presses and values of rotation turns of the motor when determining that the press duration is greater than the second preset threshold, to control the motor to rotate according to the value of rotation turns of the motor. 19.-20. (canceled)
 21. The method according to claim 1, further comprising: receiving an unfolding instruction or a folding instruction before controlling the motor to rotate according to the press parameter.
 22. The apparatus according to claim 7, wherein the processor is further configured to: receive an unfolding instruction or a folding instruction before controlling the motor to rotate according to the press parameter.
 23. The electronic device according to claim 13, wherein the motor drive switch is a sensor.
 24. The electronic device according to claim 13, wherein the control circuit is further configured to: receive an unfolding instruction or a folding instruction before controlling the motor to rotate according to the press parameter. 